package com.example.demo.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author:lgl
 * @Description:
 * @Date:Create in 2017/11/15 .
 */
@Controller
public class PageController {

//    public static void main(String[] args) {
//        doublea = 1.2;
//        System.out.println(a*3);
//
//        DecimalFormatformat = newDecimalFormat("#.00");
//        System.out.println(format.format(a*3));
//
//    }

    @GetMapping("/")
    public String index() {
            return "home";
        }

    @GetMapping("about")
    public String about() {
        return "about";
    }

    @GetMapping("article")
    public String article() {
        return "article";
    }

    @GetMapping("detail")
    public String detail() {
        return "detail";
    }

    @GetMapping("home")
    public String home() {
        return "home";
    }

    @GetMapping("resource")
    public String resource() {
        return "resource";
    }

    @GetMapping("timeline")
    public String timeline() {
        return "timeline";
    }

    @GetMapping("chat")
    public String chat() {
        return "chat";
    }

    @GetMapping("error")
    public String error() {
        return "error";
    }

    @GetMapping("qq")
    public String qq() {
        return "qq";
    }

    @GetMapping("edit")
    public String edit() {
        return "edit";
    }
}
